#!/bin/sh

# This wrapper script is taken from Arch Linux AUR entry of jalview.
# https://aur.archlinux.org/packages/jalview/
# Maintainer of the PKGBUILD is Stefan Seemayer.

progname="jalview"
mainclass="jalview.bin.Jalview"
basedir="/usr/share/java/$progname"

# build classpath: all jars in $basedir
cp=$( ls $basedir/*.jar | xargs echo | sed "s/ /:/g" );


# run jar
"$JAVA_HOME/bin/java" -cp $cp $mainclass
